/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package PanelesDePlatos;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author hp
 */
public class DeserializarPlato 
{
    
    public DeserializarPlato() throws IOException, ClassNotFoundException
    {
        Plato plato = null;
        
        try 
        {
            FileInputStream archivoInterior = new FileInputStream("src/BaseDeDatos/plato.ser");
            ObjectInputStream interior = new ObjectInputStream(archivoInterior);
            plato = (Plato)interior.readObject();
            interior.close();
            archivoInterior.close();
            System.out.println();
        } 
        catch (FileNotFoundException ex) {
            Logger.getLogger(DeserializarPlato.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
